#include <iostream>
#include <string>
#include <cctype>
using namespace std;

int main()
{
	string str;
	int cnt = 0;
	while (cin >> str)
	{
		for (auto ch : str)
		{
			if (isdigit(ch))
				cnt++;
		}
	}
	cout << cnt << endl;
	
	return 0;
}

int main1()
{
	string str;
	getline(cin, str);
	int cnt = 0;
	for (auto ch : str)
	{
		if (isdigit(ch))
			cnt++;
	}
	cout << cnt << endl;
	
	return 0;
}
